﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="profile.aspx.cs" Inherits="EnmineKaitlin.admin.profile" MasterPageFile="~/MasterPage/AdminDefault.Master" %>

<asp:Content ID="ctnprofile" runat="server" ContentPlaceHolderID="cphContent">
<div class="form list">
        <h2><span class="icon"><img src="../images/admin/Play.png"></span>Cập nhật thông tin tài khoản</h2>        
        <p>&nbsp;</p>
        <asp:Repeater ID="rptDetailUser" runat="server" OnItemCommand="rptDetailUser_Update">
            <HeaderTemplate><table border="0" cellpadding="3" cellspacing="3"></HeaderTemplate>
            <ItemTemplate>                            
                    <tr>
                        <td align="right">Tên đăng nhập:</td>
                        <td><asp:TextBox ID="txtUserName" Width="180" runat="server" Enabled="false" Text='<%#Eval("UserName") %>' CssClass="txt required"></asp:TextBox></td>
                    </tr>
                    <tr><td align="right">Mật khẩu:</td><td><asp:TextBox ID="txtPassword" Width="180" TextMode="Password" runat="server" CssClass="txt password"></asp:TextBox></td></tr>
                    <tr><td align="right">Xác nhận mật khẩu:</td><td><asp:TextBox ID="txtPasswordConfirm" Width="180" runat="server" TextMode="Password" CssClass="txt password_again"></asp:TextBox></td></tr>
                    <tr><td align="right">Họ và tên:</td><td><asp:TextBox ID="txtFullName" Width="180" runat="server" Text='<%#Eval("FullName") %>' CssClass="txt required"></asp:TextBox></td></tr>
                    <tr><td align="right">Email:</td><td><asp:TextBox ID="txtEmail" Width="180" runat="server" CssClass="txt email" Text='<%#Eval("Email") %>'></asp:TextBox></td></tr>
                    <tr><td align="right">Số di động:</td><td><asp:TextBox ID="txtPhone" Width="180" runat="server" CssClass="txt" Text='<%#Eval("PhoneNumber") %>'></asp:TextBox></td></tr>
                    <tr><td align="right">Số máy bàn:</td><td><asp:TextBox ID="txtTel" Width="180" runat="server" CssClass="txt" Text='<%#Eval("Tel") %>'></asp:TextBox></td></tr>
                    <tr><td align="right">Ngày sinh:</td><td><asp:TextBox ID="txtBirthday" Width="180" runat="server" CssClass="txt datepicker required" Text='<%#DisplayDateTime(Eval("BirthDay").ToString()) %>'></asp:TextBox></td></tr>
                    <tr><td align="right">Giới tính:</td><td><asp:DropDownList ID="ddlGender" runat="server" Width="185" SelectedValue='<%#Eval("Gender") %>'>
                        <asp:ListItem Text="Nam" Value="male"></asp:ListItem>
                        <asp:ListItem Text="Nữ" Value="female"></asp:ListItem>
                        <asp:ListItem Text="Khác" Value="other"></asp:ListItem>
                    </asp:DropDownList></td></tr>
                    <tr><td align="right">Địa chỉ:</td><td><asp:TextBox ID="txtAddress" Width="180" runat="server" CssClass="txt" Text='<%#Eval("Address") %>'></asp:TextBox></td></tr>
                    <tr><td align="right">Vị trí:</td><td><asp:TextBox ID="txtPosition" Width="180" runat="server" CssClass="txt" Text='<%#Eval("Position") %>'></asp:TextBox></td></tr>
                    <tr><td align="right">Trạng thái:</td><td><asp:DropDownList Enabled="false" ID="ddlStatus" Width="185" runat="server" SelectedValue='<%#Eval("Status") %>'>
                        <asp:ListItem Text="Hoạt động" Value="active"></asp:ListItem>
                        <asp:ListItem Text="Khóa" Value="lock"></asp:ListItem>
                    </asp:DropDownList></td></tr>
                    <tr><td align="right">Nhóm người dùng:</td><td><asp:DropDownList ID="ddlUserGroup" Enabled="false" DataSource='<%#BindGroup() %>' Width="185" DataTextField="Name" DataValueField="GroupID" SelectedValue='<%#Eval("IDGroup") %>' runat="server"></asp:DropDownList></td></tr>
                    <tr><td></td><td><asp:Button ID="btnUpdateUser" runat="server" Text="Cập nhật" CssClass="btn right btnUpdateUser" CommandName="Update" CommandArgument='<%#Eval("UserID") %>' /></td></tr>                                                                                            
            </ItemTemplate>
            <FooterTemplate></table></FooterTemplate>
        </asp:Repeater>
</div>        
</asp:Content>
